package astra.execute;

import org.xtext.runtime.interpreter.ASTRAClass;
import org.xtext.runtime.interpreter.ASTRAClassNotFoundException;
import org.xtext.runtime.interpreter.Agent;
import org.xtext.runtime.interpreter.DuplicateAgentNameException;

public class RunCurrent {
	public static void main(String[] args) throws ASTRAClassNotFoundException {
		try {
			Agent agent = ASTRAClass.forName("astra.example.CalAgent").newInstance("rem");
			
			while (true) {
				agent.execute();
			}
		} catch (DuplicateAgentNameException e) {
			e.printStackTrace();
		}
	}
}
